import {Drawer, DrawerProps} from "antd";
import React from "react";
import {util} from "@/common/util";


export default class AuthButton extends React.Component<DrawerProps, any> {


    render() {

        let {width} = this.props;

        if (util.IsNull(width)) {
            width = 720
        }

        return <Drawer
            {...this.props}
            width={width}
        >
            {this.props.children}
        </Drawer>
    }
}